﻿CREATE PROCEDURE [acms].[Topic_GetAllByPostVersionId]
	@PostVersionId int
AS
	SELECT a.*
	FROM Topic_View a
		inner join PostTopic_View b on a.Id = b.TopicId
	WHERE b.PostVersionId = @PostVersionId
	ORDER BY Sequence
RETURN 0;